package com.cn.jinhao.hotline.provider.huawu.service.impl;

import cn.hutool.db.Db;
import cn.hutool.db.Entity;
import com.cn.jinhao.hotline.provider.huawu.service.OpenApiService;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service
public class OpenApiServiceImpl implements OpenApiService {
    @Override
    public void add(String seatCode, String phone, String queueCode) throws SQLException {
        Db.use().insert(
            Entity.create("TB_CTI_SEAT_INFO")
                .set("SEAT_NO",seatCode)
                .set("SEAT_PHONE",phone)
                .set("QUEUE_CODE", queueCode)
        );
        Entity
    }
}
